package cn.tedu;

import cn.tedu.ba03.SomeService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest03 {
    @Test
    public void test01(){
        String config="applicationContext.xml";
        ApplicationContext ac=new ClassPathXmlApplicationContext(config);
        SomeService proxy = (SomeService) ac.getBean("MyService");
        String res = proxy.doFirst("lisi", 22);
        System.out.println(res);
    }

}
